home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
-
- #
- # update path to also look in the same directory from where this script
- # was executed from
- #
-
- set path = (/usr/bsd /bin /usr/bin /usr/sbin /usr/bin/X11)
- set DT_xconfirm = "$DT_utilities/DT_xconfirm"
-
- set path = (${DT_util_path} $path)
-
- #
- # make sure our server is running, and there is something to kill :-)
- #
-
- isServerRunning
-
- if ($status == 0) then
- $DT_xconfirm error "Server is not running."
- exit 2
- endif
- #
- # find out and remember the user name
- #
-
- if ($?HOME) then
- set userName = ~$USER
- else
- $DT_xconfirm nohome
- exit 0
- endif
-
- echo "http server: stopped (pid `cat $userName/$DT_WWW_ROOT/logs/httpd.pid`)"
-
- kill -9 `cat $userName/$DT_WWW_ROOT/logs/httpd.pid`
-
- #
- # an indication that server has been killed
- #
- /usr/bin/rm $userName/$DT_WWW_ROOT/logs/httpd.pid
-
- exit 1
-